package j04propo;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.Properties;

public class J1 {
    public static void main(String[] args) throws Exception {
        Properties p = new Properties();
        p.load(
                new FileInputStream("_1219\\src\\j04propo\\a.properties")
        );
        System.out.println("p = " + p);
        System.out.println(p.get("password"));//123123
        System.out.println(p.get("blood"));//1000

        System.out.println(">>>>>>");
        p.setProperty("power","120");
        p.store(
                new FileOutputStream("_1219\\src\\j04propo\\b.properties"),
                "zhushi1"
        );

    }
}
